<script setup>
import { onMounted, onUnmounted, onUpdated, ref } from 'vue';
const count = ref(0)
onMounted(() => {
    console.log('onMounted生命周期,count');
})

const money = ref(10000)
onMounted(() => {
    money.value += 1000
    console.log('onMounted生命周期,money');
})

onUpdated(() => {
    console.log('onUpdated生命周期');
})
onUnmounted(() => {
    console.log('onUnmounted生命周期');
})
</script>
        
<template>
    <div @click="count++">{{count}}</div>
</template>